package com.sinosoft.dsp.component.bpm.viewbean.activity.part;

import java.util.ArrayList;
import java.util.List;

import com.sinosoft.dsp.component.bpm.service.core.BpmSelectItemsService;
import com.sinosoft.dsp.component.bpm.viewbean.activity.BpmAbstractActivityPartEditViewBean;
import com.sinosoft.dsp.component.bpm.viewbean.activity.IBpmActivityPartEditViewBean;

public class BpmActivitySubFieldsViewBean extends
		BpmAbstractActivityPartEditViewBean implements
		IBpmActivityPartEditViewBean {

	private List<SubField> inputFields = new ArrayList<SubField>();

	private List<SubField> outputFields = new ArrayList<SubField>();

	public List<SubField> getInputFields() {
		return inputFields;
	}

	public void setInputFields(List<SubField> inputFields) {
		this.inputFields = inputFields;
	}

	public List<SubField> getOutputFields() {
		return outputFields;
	}

	public void setOutputFields(List<SubField> outputFields) {
		this.outputFields = outputFields;
	}

	/**
	 * 子字段对象
	 * 
	 * @author 潘巍（PeterPan）
	 * @since 2011-8-10 下午12:24:43
	 * 
	 */
	public class SubField {
		/**
		 * 子流程变量名
		 */
		private String subver;

		/**
		 * 父流程变量名
		 */
		private String ver;

		/**
		 * 表达式
		 */
		private String expr;

		/**
		 * 表达式语言
		 */
		private String lang = BpmSelectItemsService.SELECT_ITEM_LANG_DEFAULT;

		public String getSubver() {
			return subver;
		}

		public void setSubver(String subver) {
			this.subver = subver;
		}

		public String getVer() {
			return ver;
		}

		public void setVer(String ver) {
			this.ver = ver;
		}

		public String getExpr() {
			return expr;
		}

		public void setExpr(String expr) {
			this.expr = expr;
		}

		public String getLang() {
			return lang;
		}

		public void setLang(String lang) {
			this.lang = lang;
		}

	}
}
